package org.example.hansp.collection_.map_;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

@SuppressWarnings({"all"})
public class HashMap_Source {
    public static void main(String[] args) {

        Map map=new HashMap();
        map.put("No1:","Lim");
        map.put("No2:","Liam");
        map.put("No3:","Emlees");
        map.put(null,null);
        map.put("No4:","Lewis");
        map.put("No5:",null);
        map.put(1,"kural");
        map.put(new String("No6:"),null);
        map.put(new Object(),"Neral");
        System.out.println(map.get("No3:"));
        System.out.println(map);

        Set set=map.entrySet();
        System.out.println(set.getClass());
        for (Object o : set) {
            Map.Entry entry = (Map.Entry) o;
            System.out.println(entry.getKey()+":"+entry.getValue());
        }
        Set set1 = map.keySet();
        Collection values = map.values();
    }
}
